package com.linsir.gen.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.google.common.collect.Lists;
import com.linsir.core.entity.AbstractEntity;
import com.linsir.core.util.S;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * @author ：linsir
 * @date ：Created in 2022/10/4 10:32
 * @description：字段
 * @modified By：
 * @version:
 */
@Data
@TableName("sys_gen_table_column")
public class SysGenTableColumn extends AbstractEntity<Long> {


    private Long sysGenTableId;

    /*字段名*/
    @Length(min=1, max=200)
    private String name;

    /*描述*/
    private String comments;

    /*列的数据类型的字节长度*/
    private String jdbcType;

    /*JAVA类型*/
    private String javaType;

    /*JAVA字段名*/
    private String javaField;

    /*是否主键*/
    private boolean isPk;

    /*是否可为空*/
    private boolean isNull;

    /*是否为插入字段*/
    private boolean isInsert;

    /*是否编辑字段*/
    private boolean isEdit;

    /*是否列表字段*/
    private boolean isList;

    /*是否查询字段*/
    private boolean isQuery;

    /*查询方式（等于、不等于、大于、小于、范围、左LIKE、右LIKE、左右LIKE）*/
    private String queryType;

    /*字段生成方案（文本框、文本域、下拉框、复选框、单选框、字典选择、人员选择、部门选择、区域选择）*/
    private String showType;

    /*字典类型*/
    private String dictType;

    /*排序（升序）*/
    private Integer sort;

    /*自增长*/
    private String autoIncrement;



}
